package br.com.usjt.sge.complemento;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import br.com.usjt.sge.estacionamento.Estacionamento;
import br.com.usjt.sge.usuario.Usuario;


@Entity
@Table(name="telefone")
public class Telefone implements Serializable {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1609849667732539710L;

	@Id
	@GeneratedValue
	@Column(name="cod_telefone")
	private Integer telefone;	
	
	private String num_telefone;
	
		
	public Integer getTelefone() {
		return telefone;
	}
	public void setTelefone(Integer telefone) {
		this.telefone = telefone;
	}
	
	public String getNum_telefone() {
		return num_telefone;
	}
	public void setNum_telefone(String num_telefone) {
		this.num_telefone = num_telefone;
	}
		
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((num_telefone == null) ? 0 : num_telefone.hashCode());
		result = prime * result
				+ ((telefone == null) ? 0 : telefone.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Telefone other = (Telefone) obj;
		if (num_telefone == null) {
			if (other.num_telefone != null)
				return false;
		} else if (!num_telefone.equals(other.num_telefone))
			return false;
		if (telefone == null) {
			if (other.telefone != null)
				return false;
		} else if (!telefone.equals(other.telefone))
			return false;
		return true;
	}
	
	
	
}
